package com.java.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.common.utils.PageUtils;
import com.java.common.utils.R;
import com.java.gulimall.product.entity.CategoryEntity;
import com.java.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author jiangli
 * @email 31346337@qq.com
 * @date 2020-06-14 20:41:07
 */
public interface CategoryService extends IService<CategoryEntity> {

    List<CategoryEntity> tree();

    R removeMenuByIds(List<Long> catIds);

    /**
     * 找到catelogId的完整路径
     * [父,子,孙]
     */
    Long[] getCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatelogJson();
}

